import { EHttpMethod } from 'Typings/system';
import { getApiParams, SystemModuleRouter } from 'Configs/common';

const { apiPrefix } = getApiParams();
const authApis = {
    apiPostToken: {
        name: 'apiPostAuthTokens',
        url: `${apiPrefix}/blade-auth/${SystemModuleRouter.TOKEN}`,
        method: EHttpMethod.POST,
    },
    apiDeleteToken: {
        name: 'apiDeleteAuthTokens',
        url: `${apiPrefix}/${SystemModuleRouter.TOKEN}`,
        method: EHttpMethod.DELETE,
    },
    apiGetLoginInfo: {
        name: 'apiGetLoginInfo',
        url: `${apiPrefix}/user/loginInfo`,
        method: EHttpMethod.GET,
    },
};

export default authApis;
